﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses.Tower._6_10;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Tower._6_10;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Tower._6_10.Resources;
using The_Chronicles_of_Asku.Characters;

namespace The_Chronicles_of_Asku.Areas.End_Game_Floors.Tower._6_10
{
    class TowerFloorTen
    {
        Hero myHero = new Hero();
        Corithian Corithian = new Corithian();
        CorithianBattle battle = new CorithianBattle();

        public void theFloor(Hero myHero, Mob mob)
        {
            Console.WriteLine(FloorTenText.Entrance, myHero.Identifier);
            ClearScreen();

            battle.Fight(myHero, Corithian);
            myHero.ResetStats(myHero);
            Corithian.ResetStats(Corithian);
            ClearScreen();

            if (myHero.isAlive == true)
            {
                Console.WriteLine(FloorTenText.Exit);
                ClearScreen();
                Console.WriteLine(FloorTenText.Finished, myHero.Identifier);
                ClearScreen();
                Console.WriteLine(FloorTenText.Credits);
                ClearScreen();
            }

            else if (myHero.isAlive == false)
            {
                Console.WriteLine(FloorTenText.Dead);
                myHero.isAlive = true;
                ClearScreen();
            }
        }

        private void ClearScreen()
        {
            Console.ReadKey();
            Console.Clear();
        }
    }
}

